<template>
  <div>
    <div class="investment">
      <div class="sort">
        <span>所属园区：</span>
        <ul>
          <li
            class="text-center"
            v-for="(item,index) in instmentD"
            :class="{'typeactive':instmentcur === index}"
            @click="instmentItme(item,index)"
          >
            {{ item.value }}
          </li>
        </ul>
      </div>
      <div class="sort">
        <span>行业大类：</span>
        <ul>
          <li
            class="text-center"
            v-for="(item,index) in sortD"
            :class="{'typeactive':sortcur === index}"
            @click="sortItme(item,index)"
          >
            {{ item.value }}
          </li>
        </ul>
      </div>
      <div class="company-list">
        <router-link :to="{name:'CompanyList_CompanyDetail'}">
        <div class="company-item">

          <img src="../../../static/images/hd_p3.png">
          <div>
            <h3>爱康过国兵健康体检管理集团有限公司</h3>
            <div><span>刘华</span><span>2019-04-18</span><span> 5000万人民币 </span><span>卫生和社会工作</span></div>
            <div>厦门市湖里区湖里大道33号西侧</div>
          </div>

        </div>
        </router-link>
        <div class="company-item">
          <img src="../../../static/images/hd_p3.png">
          <div>
            <h3>爱康过国兵健康体检管理集团有限公司</h3>
            <div><span>刘华</span><span>2019-04-18</span><span> 5000万人民币 </span><span>卫生和社会工作</span></div>
            <div>厦门市湖里区湖里大道33号西侧</div>
          </div>
        </div>
        <div class="company-item">
          <img src="../../../static/images/hd_p3.png">
          <div>
            <h3>爱康过国兵健康体检管理集团有限公司</h3>
            <div><span>刘华</span><span>2019-04-18</span><span> 5000万人民币 </span><span>卫生和社会工作</span></div>
            <div>厦门市湖里区湖里大道33号西侧</div>
          </div>
        </div>
        <div class="company-item">
          <img src="../../../static/images/hd_p3.png">
          <div>
            <h3>爱康过国兵健康体检管理集团有限公司</h3>
            <div><span>刘华</span><span>2019-04-18</span><span> 5000万人民币 </span><span>卫生和社会工作</span></div>
            <div>厦门市湖里区湖里大道33号西侧</div>
          </div>
        </div>
      </div>
      <!--  -->

      <pagination :msg="page" @refreshList="onRefresList"></pagination>
    </div>


  </div>
</template>

<script>
  import pagination from '../../views/localPage/pagination'
  export default {
    name: "Zone",
    components:{pagination},
    data(){
      return{
        page:{
          pagesize:4,
          total:900,
        },
        instmentcur: 0,
        sortcur:0,
        instmentD: [
          { value: "同安翔安高新技术产业基地 " },
          { value: "厦门科技创新园 " },
          { value: "火炬（翔安）产业区" },
          { value: "湖里火炬园" },
          { value: "厦门创新园" },
          { value: "厦门软件园" },
          { value: "北大生物园" },
        ],
        sortD:[ { value: "卫生" },
          { value: "社会工作" }]

      }
    },
    methods: {

      // 投资邻域
      instmentItme(item, index) {
        this.instmentcur = index;
      },
      // 类型
      sortItme(item, index) {
        this.sortcur = index;
      },
      onRefresList(val){
        console.log(val)
      }

    }
  }
</script>

<style scoped>
  .sort{
    display: flex;
    margin-bottom: 20px;
  }
  .sort span{
    width: 100px;
  }
  .sort ul li{
    display: inline-block;
    margin:  0 20px;
  }
  .typeactive{
    color: #1575f9;
  }
  .company-item{
    display: flex;
    padding: 20px;
    background: #ffffff;
    margin-bottom: 30px;
  }
  .company-item img{
    width: 90px;
    height: 90px;
    margin-right: 30px;
  }
</style>
